package com.mezz.bones.im.common.message.body.in;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

/**
 * @Author: zhuang
 * @Date: 2024/12/19 14:12
 * @Description: TODO
 * @Version: 1.0
 **/

@Data
@ApiModel("用户会话列表请求参数")
public class ConversationRecordReq {

    @ApiModelProperty(value = "1单聊 2群聊")
    private Integer sessionType;

    @ApiModelProperty("0普通单聊 1客服单聊")
    private Integer customService;

    @ApiModelProperty("用户ID")
    private String userId;

    @ApiModelProperty("指定对端用户")
    private String peerId;

    @ApiModelProperty("上一页最后一条数据的游标ID")
    private Long cursorId;

    @ApiModelProperty("查询模式 0查询历史数据 1查询新数据")
    @Range(min = 0, max = 1, message = "查询模式必须是 0查询历史数据 1查询新数据")
    private Integer fetchMode;

    @ApiModelProperty("拉取多少条消息")
    private Integer fetchNum;
}
